package cn.xorange.commons.system.mapper.system;


import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.system.SysRoleOrg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : yangjian
 * @date : 2022/3/9
 */
@Mapper
public interface SysRoleOrgMapper extends MBaseMapper<SysRoleOrg> {

    @Select("select org_id from sys_role_org where role_id = #{roleId}")
    List<Long> selectRoleOrgIds(@Param("roleId") Long roleId);
}
